import service from "@/utils/request";

// 创建系统消息
export const createSystemMessage = (data) => {
  return service({
    url: "/systemMessage/create",
    method: "post",
    data,
  });
};

// 更新系统消息
export const updateSystemMessage = (data) => {
  return service({
    url: "/systemMessage/update",
    method: "post",
    data,
  });
};

// 删除系统消息
export const deleteSystemMessage = (id) => {
  return service({
    url: `/systemMessage/delete`,
    method: "delete",
    params: { ID: id },
  });
};

// 获取系统消息列表
export const getSystemMessageList = () => {
  return service({
    url: "/systemMessage/list",
    method: "get",
  });
};
